<?php
namespace Home\Model;
use Think\Model;
class  ActivityModel extends Model{

	public function addActivity($data){
		$data['create_time']=time();
		$data['updata_time']=time();

		return $this->add($data);
	}
	//散工首页列表
	public function  activityLists(){
		return $this->select();
	}

	//查询
	public function getActivityById($id){
		return $this->where("id = '{$id}'")->find();
	}



}